package teamdamn.model;

/**
 * The answer to a question.
 * @author Joel Hunsaker
 *
 */
public class ResponseAnswer {
    
    /** The actual answer. */
    private String myAnswer;
    
    /** Whether analysts can edit the response or not */
    private boolean isEditable;
    
    
    /**
     * Constructs an answer.
     * 
     * @author joelhun
     * @param theAnswer The answer
     * @param theEditable Whether it's editable.
     */
    public ResponseAnswer(String theAnswer, boolean theEditable) {
        myAnswer = theAnswer;
        isEditable = theEditable;
    }
    
    /**
     * @author joelhun
     * @return if it's editable
     */
    public boolean isEditable() {
    	return isEditable;
    }
    
    @Override
    public String toString() {
    	return myAnswer;
    }
}
